# coding=utf-8
"""
Created on 2018年09月04日
"""
from util_base.ufo_decorators import processor
from common_base.cmd import CMD
from processor_base.base_processor import BaseProcessor
from util_base import common_utils
import math


@processor(CMD.CMD_ALIVECMS_RECENT_COUNT, internal_access=True)
class EventRecentCount(BaseProcessor):
    """
    EventRecentCount
    每1个小时执行一次
    """
    
    TAG = 'EventRecentCount'
    
    def __init__(self, handler):
        """
        Constructor
        """
        BaseProcessor.__init__(self, handler)

    def process(self):
        """
        process protocol
        """
        self.alive_cmsdb.event_manage_recent_count()

        return dict()

    def _verify_params(self):
        """
        重写父类方法, 作参数校验
        """
